package com.cqut.ktpspring.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqut.ktpspring.pojo.Course;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    @Select("select * from course_base_info where deleted!=1")
    List<Course> select();

    @Update("update course_base_info set deleted=1 where id=#{id}")
    void delete(String id);
}


